package cn.tedu.io;

import java.io.*;

public class Test4_OutputStream {
    public static void main(String[] args) throws IOException {
        method();
        method2();
    }

    public static void method() throws IOException {
        OutputStream out = new FileOutputStream("D:\\iotest\\1.txt",true);

        out.write(6000);
        out.write(42342);
        out.write(44643);

        out.close();

    }
    public static void method2() throws IOException {
        OutputStream out = new BufferedOutputStream(
                new FileOutputStream("D:\\iotest\\1.txt",true));

        out.write(97);
        out.write(97);
        out.write(97);

        out.close();
    }


}
